package com.example.shoppingmall.dao;

import com.example.shoppingmall.pojo.Invoice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface InvoiceMapper {
    //发货单列表+条件查询+分页
    public List<Invoice> getAllinvoicelist(@Param("cno") String cno,@Param("ono") String ono, @Param("dtime") String dtime,
                                           @Param("InvoiceNo") String InvoiceNo,@Param("orderno") String orderno,
                                           @Param("CourierNo") String CourierNo,@Param("phone") String phone,
                                           @Param("pageno") Integer pageno,@Param("pageSize") Integer pageSize);
    //查询总条数
    public int Invoicecount(@Param("InvoiceNo") String InvoiceNo,@Param("orderno") String orderno,
                           @Param("CourierNo") String CourierNo,@Param("phone") String phone);
    //查看详情
    public Invoice getlistById(int id);
}
